package czy.demo.common.constant;

/* 错误枚举 */
public enum Error {

    LOGIN_FAIL(4001, "登录失败"),
    NEED_LOGIN(4002, "需要登录访问"),
    ACCESS_DENY(4003, "访问拒绝");

    private Integer code;
    private String message;

    Error(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}

